home *** CD-ROM | disk | FTP | other *** search
- Path: news.rain.org!usenet
- From: "Guus Leeuw jr." <guusl@eiffel.com>
- Newsgroups: comp.lang.c
- Subject: Re: Help about the sin() with linux
- Date: Fri, 02 Feb 1996 13:33:25 -0800
- Organization: Interactive Software Engineering Inc. hhtp://www.eiffel.com/
- Message-ID: <31128325.148C09B8@eiffel.com>
- References: <4e2eur$50@avalon.imaginet.fr> <4ehtg6$8j4@hdxx05.telecom.ptt.nl> <4elm7v$c9p@airdmhor.gen.nz> <310F6FBB.2EF2@cmt.lpr.mail.carel.fi>
- NNTP-Posting-Host: @outback.eiffel.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b3 (X11; I; Linux 1.2.8 i586)
-
- Ari Lukumies wrote:
- >
- > Simon Hosie wrote:
- > >
- > > Andre Broers:
- > > > You have to link the math library with your program. I hope that will
- > > > work.
- > >
- > > Where is it?? Where is it?? Tell me, damn you.. I must know!!
- >
- > The libraries are usually in /usr/lib. Usually in *nix the switch -lm in cc command
- > line is enough to link the math lib, if the environment variable LIB is pointing to
- > the right directory. You can check where the library actually is by doing find ./
- > -name libm.a -print. libm.a is usually the name of the math library; in some
- > systems it may have another name, though.
- >
-
- Well, I'm running Linux (which is a *nix), and don't have a LIB environment variable,
- but still my cc / gcc can (I repeat _can_) find the library only by calling
- `gcc -o foo bar.c -lm'
-
- Most cc/gcc compilers on *nix assume the libraries are in /usr/lib.
-
- Later,
- Guus
-